package com.iflytek.aidemo.model;

/**
 * 学生模型类（包含班级ID）
 */
public class Student {
    private Long id; // 自增ID（后端生成）
    private String name; // 学生姓名
    private Long classId; // 班级ID

    // 构造方法
    public Student() {}
    public Student(String name, Long classId) {
        this.name = name;
        this.classId = classId;
    }
    public Student(Long id, String name, Long classId) {
        this.id = id;
        this.name = name;
        this.classId = classId;
    }

    // Getter和Setter
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public Long getClassId() { return classId; }
    public void setClassId(Long classId) { this.classId = classId; }
}